﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DynCMS.NET.Core.Entities;
using DynCMS.NET.DataAccess.Implementation;
using DynCMS.NET.DataAccess.Mappings;

namespace DynCMS.NET.DataAccess.Repos
{
    public class PageRepository : GenericRepository<Page>
    {
        public PageRepository(DataContext context)
            : base(context)
        {
        }

        public override Page Get(Page key)
        {
            return this.table
                    .FirstOrDefault(p => p.Url == key.Url);
        }
    }
}